﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 练习5
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("请输入一个数");
            double Input1 = Convert.ToDouble(Console.ReadLine());
            Console.WriteLine("请输入第二个数");
            double Input2 = Convert.ToDouble(Console.ReadLine());
            Console.WriteLine("最大值为{0}，最小值为{1}", Math.Max(Input1, Input2), Math.Min(Input1, Input2));
            Console.ReadKey();
        }
    }
}
